* {
	margin: 0;
	border: 0;
	outline: 0;
	font-family: "微软雅黑"
}
body,html {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.profile {
	width: 100px;
	height: 100px;
	background-color: #ddd;
	border-radius: 5px;
	position: absolute;
	bottom: 55%;
	left: 50%;
	transform: translateX(-50%);
}
#userName {
	width: 80%;
	max-width: 400px;
	height: 10px;
	position: absolute;
	top: 55%;
	left: 50%;
	transform: translateX(-50%);
	background-color: #eee;
	padding: 20px;
	border-radius: 3px;
}
#main {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	position: relative;
}
aside {
	width: 70px;
	min-width: 70px;
	height: 100%;
	background-color: #282c31;
}
aside img {
	position: absolute;
	left: 15px;
	top: 25px;
	width: 40px;
	height: 40px;
}
#main>section {
	width: 20%;
	min-width: 240px;
	height: 100%;
	background-color: #e8e7e7;
}
section header {
	width: 100%;
	height: 70px;
	background-color: #edeae9;
	display: flex;
}
header input {
	background-color: #dbd9d8;
	width: 89%;
	height: 28px;
	margin: auto;
	display: block;
	padding-left: 3%;
	line-height: 30px;
	border-radius: 4px;
}
.user {
	width: 100%;
	height: 80px;
	background-color: #e8e7e7;
	position: relative;
	overflow: hidden;
	display: flex;
}
.user p {
	position: absolute;
	top: 12.5px;
	left: 0;
	width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: default;
}
.user:hover {
	background-color: #dedcdb;
}
.userselected {
	background-color: #bfbfbf;
}
.userselected:hover {
	background-color: #bfbfbf;
}
article {
	background-color: #f5f5f5;
	width: auto;
	flex-grow: 4;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}
textarea {
	width: 100%;
	height: 100px;
	min-height: 100px;
	position: relative;
	border-top: solid 1px #e7e7e7;
	padding: 10px;
	background: none;
	padding-top: 50px;
	padding-left: 30px;
	resize: none;
}
textarea:focus {
	background-color: #fafafa;
}
#msg {
	width: 100%;
	height: auto;
	flex-grow: 4;
	overflow-y: scroll;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px;
	padding-bottom: 0;
}
.box {
	margin-bottom: 20px;
	height: auto;
	position: relative;
}
.box .avatar {
	width: 50px;
	height: 50px;
	border-radius: 4px;
	position: absolute;
	top: 0;
	left: 0;
	cursor: pointer;
}
.box p {
	padding: 13px;
	background-color: #fff;
	max-width: 50%;
	width: auto;
	line-height: 24px;
	display: inline-block;
	border-radius: 5px;
	position: relative;
	left: 70px;
	white-space: wrap;
	border: solid 1px #e5e5e5;
}
.box p:hover {
	background-color: #f5f5f5;
}
.box .imageMessage {
	background-color: #fff;
	max-width: 30%;
	max-height: 200px;
	width: auto;
	display: inline-block;
	border-radius: 5px;
	position: relative;
	left: 70px;
	white-space: wrap;
	cursor: pointer;
}
.box .arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
    border-right: 11px solid #fff;
    border-bottom: 5px solid transparent;
	position: absolute;
	top: 15px;
	left: 60px;
}
.box .arrow2 {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
    border-right: 10px solid #fff;
    border-bottom: 5px solid transparent;
	position: absolute;
	top: 15px;
	left: 60px;
}
.box:hover .arrow {
	border-right: 11px solid #f5f5f5;
}
.box:hover .arrow2 {
	border-right: 10px solid #f5f5f5;
}

.box2 {
	margin-bottom: 20px;
	position: relative;
	float: right;
	width: auto;
	height: auto;
}
.box2 .avatar {
	width: 50px;
	height: 50px;
	position: absolute;
	border-radius: 2px;
	top: 0;
	right: 20px;
	cursor: pointer;
}
.box2 p {
	padding: 13px;
	background-color: #9eea6a;
	max-width: 50%;
	width: auto;
	line-height: 24px;
	display: inline-block;
	border-radius: 5px;
	float: right;
	position: relative;
	right: 90px;
	white-space: wrap;
}
.box2 p:hover {
	background-color: #98e165;
}
.box2 .imageMessage {
	background-color: #fff;
	max-width: 30%;
	max-height: 200px;
	width: auto;
	display: inline-block;
	border-radius: 5px;
	float: right;
	position: relative;
	right: 90px;
	white-space: wrap;
	cursor: pointer;
}
.box2 .arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
    border-left: 10px solid #9eea6a;
    border-bottom: 5px solid transparent;
	position: absolute;
	top: 15px;
	right: 80px;
}
.box2 .arrow2 {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
    border-left: 10px solid #fff;
    border-bottom: 5px solid transparent;
	position: absolute;
	top: 15px;
	right: 80px;
}
.box2:hover .arrow {
	border-left: 10px solid #98e165;
}

button {
	width: 75px;
	height: 30px;
	border: solid 1px #ddd;
	position: absolute;
	bottom: 10px;
	right: 30px;
	text-align: center;
	color: #777;
	cursor: pointer;
	font-size: 15px;
	background: none;
}
button:hover {
	border: 0;
	background-color: #129611;
	color: #fff;
}
.user img {
	min-width: 55px;
	width: 55px;
	height: 55px;
	background-color: #ddd;
	margin: 12.5px;
	border-radius: 2px;
}
.user .text {
	width: 100%;
	height: 100%;
	position: relative;
}
.top {
	width: 100%;
	height: 60px;
	min-height: 60px;
	border-bottom: solid 1px #e7e7e7;
	font-size: 20px;
	padding-left: 10px;
	line-height: 60px;
}
.top img {
	display: none;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	cursor: pointer;
}
.tip {
	width: 20px;
	height: 20px;
	background-color: #ff3b30;
	position: absolute;
	top: 0;
	left: 60px;
	color: #fff;
	border-radius: 10px;
	font-size: 7px;
	line-height: 20px;
	text-align: center;
}
.view {
	position: absolute;
	bottom: 15px;
	left: 0;
	width: 98%;
	white-space: nowrap;
	overflow: hidden;
	color: #aaa;
	text-overflow: ellipsis;
	margin-right: 2%;
}
.tools {
	position: absolute;
	bottom: 110px;
	left: 0;
	width: 100%;
	height: 50px;
	display: flex;
	justify-content: flex-start;
	padding-left: 15px;
}
.tools >* {
	width: 20px;
	height: 20px;
	margin: 15px;
	cursor: pointer;
}
.time {
	position: absolute;
	right: 12.5px;
	top: 12.5px;
	color: #aaa;
	font-size: small;
}

@media screen and (max-width: 600px) {
	article {
		transition: all 0.2s;
		width: 0;
		height: 100%;
		overflow: hidden;
		background-color: #efefef;
		position: relative;
	}
	aside {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 80px;
		border-top: solid 1px #d5d7d6;
		background-color: rgba(255,255,255,0.7);
		backdrop-filter: blur(10px);
		display: flex;
		justify-content: space-around;
		z-index: 999;
	}
	aside .avatar {
		display: none;
	}
	#main>section {
		width: 100%;
		min-width: 0;
		background-color: #fefefe;
		transition: all 0.2s;
	}
	.user {
		border-bottom: solid 1px #ddd;
		background-color: #fefefe;
	}
	.user img {
		height: 57px;
		width: 57px;
		margin: 11.5px;
		border-radius: 5px;
	}
	.top {
		height: 50px;
		line-height: 50px;
		min-height: 50px;
		backdrop-filter: blur(20px);
		background-color: rgba(239,239,239,0.87);
		top: 0;
		left: 0;
		z-index: 999;
	}
	.top img {
		display: inline-block;
	}
	#msg {
		padding-top: 70px;
	}
	textarea {
		height: 30px;
		min-height: 30px;
		padding: 0;
		z-index: 99;
		margin: 10px;
		background-color: #fff;
		border-radius: 4px;
		border: 0;
		width: 60%;
		line-height: 30px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.tools {
		bottom: 0;
		justify-content: flex-start;
		padding-left: 15px;
		background-color: #f8f8f8;
	}
	article button {
		display: none;
	}
}

@media screen and (max-aspect-ratio: 10/13) {
	article {
		transition: all 0.2s;
		width: 0;
		height: 100%;
		overflow: hidden;
		background-color: #efefef;
		position: relative;
	}
	aside {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 80px;
		border-top: solid 1px #d5d7d6;
		background-color: rgba(255,255,255,0.7);
		backdrop-filter: blur(10px);
		display: flex;
		justify-content: space-around;
		z-index: 999;
	}
	aside .avatar {
		display: none;
	}
	#main>section {
		width: 100%;
		min-width: 0;
		background-color: #fefefe;
		transition: all 0.2s;
	}
	.user {
		border-bottom: solid 1px #ddd;
		background-color: #fefefe;
	}
	.user img {
		height: 57px;
		width: 57px;
		margin: 11.5px;
		border-radius: 5px;
	}
	.top {
		height: 50px;
		line-height: 50px;
		min-height: 50px;
		backdrop-filter: blur(20px);
		background-color: rgba(239,239,239,0.87);
		top: 0;
		left: 0;
		z-index: 999;
	}
	.top img {
		display: inline-block;
	}
	#msg {
		padding-top: 70px;
	}
	textarea {
		height: 30px;
		min-height: 30px;
		padding: 0;
		z-index: 99;
		margin: 10px;
		background-color: #fff;
		border-radius: 4px;
		border: 0;
		width: 60%;
		line-height: 30px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.tools {
		bottom: 0;
		justify-content: flex-start;
		padding-left: 15px;
		background-color: #f8f8f8;
	}
	article button {
		display: none;
	}
}
